package com.vca.common.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author Li
 * @description 发票详情响应类
 * @date 2023-02-10 14:19
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="InvoicedDetailsResponse对象", description="发票详情响应类")
public class InvoicedDetailsResponse implements Serializable {

    private static final long serialVersionUID = -3181992170848888516L;

    @ApiModelProperty(value = "发票id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "发票类型（抬头类型） 1=个人发票 2=企业单位发票")
    private Integer type;

    @ApiModelProperty(value = "个人名称")
    private String name;

    @ApiModelProperty(value = "公司名称")
    private String corporateName;

    @ApiModelProperty(value = "公司税号")
    private String companyTaxNumber;

    @ApiModelProperty(value = "发票金额")
    private BigDecimal price;

    @ApiModelProperty(value = "开票状态 0=开票中 1=已开票 2=已取消")
    private Integer status;

    @ApiModelProperty(value = "发票链接地址")
    private String url;

    @ApiModelProperty(value = "申请时间")
    private Date createTime;

    @ApiModelProperty(value = "订单列表")
    private List<InvoicedListResponse> orderList;
}
